home *** CD-ROM | disk | FTP | other *** search
/ Chip: Hang es video / CHIP_ZENESZERKESZTO_2005.ISO / audio_3 / visual / robotfunk / setup.exe / {app} / main.dxr / ui_40.ls < prev    next >
Encoding:
Text File  |  2003-11-19  |  22.9 KB  |  485 lines

  1. property Screen, lastgoodframe, vall, ms, inkx, myblack, piet
  2. global preloadlist, channels, screenrect, timenow, inklist, blendlist, fx1list, fx2list, gfeedback, linklist, inlist, outlist, onlist, softdual, fsim, fs, fsrect, connectlist, origconnectlist, values, lfo1, lfo2, composerect, composewidth, composeheight, timelist, curscript, fps, freeframe1list, freeframe2list, FreeFrameTest, wipelist, masklist, scratchlist
  3.  
  4. on beginSprite me
  5.   myblack = image(composewidth, composeheight, 32)
  6.   myblack.fill(myblack.rect, rgb(0, 0, 0))
  7.   if the platform contains "Mac" then
  8.   else
  9.     inkx = xtra("ValueChecker").new()
  10.   end if
  11.   onlist = [1, 1, 1, 1, 1]
  12.   timelist = [0, 0, 0, 0, 0]
  13.   masklist = [0, 0, 0, 0, 0]
  14.   scratchlist = [0, 0, 0, 0, 0]
  15.   Screen = image(composewidth, composeheight, 32)
  16.   lastgoodframe = [1, 1, 1, 1, 1]
  17.   jan = new(#vectorShape)
  18.   jan.vertexList = [[#vertex: point(-130.0, -29.0)], [#vertex: point(131.0, -29.0)], [#vertex: point(131.0, 28.0)], [#vertex: point(-130.0, 28.0)]]
  19.   jan.fillMode = #gradient
  20.   jan.fillColor = rgb(random(255), random(255), random(255))
  21.   jan.endColor = rgb(random(255), random(255), random(255))
  22.   jan.fillCycles = random(5)
  23.   jan.closed = 1
  24.   piet = image(320, 240, 32)
  25.   piet.copyPixels(jan.image, piet.rect, jan.image.rect)
  26.   piet.copyPixels(member(120, "ui").image, piet.rect, piet.rect, [#ink: 36])
  27.   linklist = [0, 0, 0, 0, 0]
  28.   inlist = [0, 0, 0, 0, 0]
  29.   outlist = [255, 255, 255, 255, 255]
  30.   softdual = 0
  31.   if (the desktopRectList).count > 1 then
  32.     fsrect = (the desktopRectList)[2]
  33.   end if
  34.   connectlist = [["blendlist[1]", "sprite(82).props.faders[1]", "sprite(82).props.faders[2]", "sprite(82).props.faders[3]", "sprite(82).props.faders[4]", "sprite(82).props.faders[5]", "sprite(82).props.faders[6]", "sprite(82).props.faders[7]", "sprite(82).props.faders[8]", "sprite(82).props.faders[9]", "sprite(82).props.faders[10]", "sprite(82).props.faders[11]", "sprite(82).props.faders[12]", "sprite(82).props.faders[13]", "sprite(82).props.faders[14]", "sprite(82).props.faders[15]", "sprite(82).props.faders[16]", "sprite(82).props.faders[17]", "sprite(82).props.faders[18]", "sprite(82).props.faders[19]", "sprite(82).props.faders[20]", "sprite(82).props.faders[11]", "sprite(82).props.faders[12]", "sprite(82).props.faders[23]", "sprite(82).props.faders[24]", "timelist[1]", "scratchlist[1]"], ["blendlist[2]", "sprite(83).props.faders[1]", "sprite(83).props.faders[2]", "sprite(83).props.faders[3]", "sprite(83).props.faders[4]", "sprite(83).props.faders[5]", "sprite(83).props.faders[6]", "sprite(83).props.faders[7]", "sprite(83).props.faders[8]", "sprite(83).props.faders[9]", "sprite(83).props.faders[10]", "sprite(83).props.faders[11]", "sprite(83).props.faders[12]", "sprite(83).props.faders[13]", "sprite(83).props.faders[14]", "sprite(83).props.faders[15]", "sprite(83).props.faders[16]", "sprite(83).props.faders[17]", "sprite(83).props.faders[18]", "sprite(83).props.faders[19]", "sprite(83).props.faders[20]", "sprite(83).props.faders[11]", "sprite(83).props.faders[12]", "sprite(83).props.faders[23]", "sprite(83).props.faders[24]", "timelist[2]", "scratchlist[2]"], ["blendlist[3]", "sprite(84).props.faders[1]", "sprite(84).props.faders[2]", "sprite(84).props.faders[3]", "sprite(84).props.faders[4]", "sprite(84).props.faders[5]", "sprite(84).props.faders[6]", "sprite(84).props.faders[7]", "sprite(84).props.faders[8]", "sprite(84).props.faders[9]", "sprite(84).props.faders[10]", "sprite(84).props.faders[11]", "sprite(84).props.faders[12]", "sprite(84).props.faders[13]", "sprite(84).props.faders[14]", "sprite(84).props.faders[15]", "sprite(84).props.faders[16]", "sprite(84).props.faders[17]", "sprite(84).props.faders[18]", "sprite(84).props.faders[19]", "sprite(84).props.faders[20]", "sprite(84).props.faders[11]", "sprite(84).props.faders[12]", "sprite(84).props.faders[23]", "sprite(84).props.faders[24]", "timelist[3]", "scratchlist[3]"], ["blendlist[4    ]", "sprite(85).props.faders[1]", "sprite(85).props.faders[2]", "sprite(85).props.faders[3]", "sprite(85).props.faders[4]", "sprite(85).props.faders[5]", "sprite(85).props.faders[6]", "sprite(85).props.faders[7]", "sprite(85).props.faders[8]", "sprite(85).props.faders[9]", "sprite(85).props.faders[10]", "sprite(85).props.faders[11]", "sprite(85).props.faders[12]", "sprite(85).props.faders[13]", "sprite(85).props.faders[14]", "sprite(85).props.faders[15]", "sprite(85).props.faders[16]", "sprite(85).props.faders[17]", "sprite(85).props.faders[18]", "sprite(85).props.faders[19]", "sprite(85).props.faders[20]", "sprite(85).props.faders[11]", "sprite(85).props.faders[12]", "sprite(85).props.faders[23]", "sprite(85).props.faders[24]", "timelist[4]", "scratchlist[4]"], ["blendlist[5]", "sprite(86).props.faders[1]", "sprite(86).props.faders[2]", "sprite(86).props.faders[3]", "sprite(86).props.faders[4]", "sprite(86).props.faders[5]", "sprite(86).props.faders[6]", "sprite(86).props.faders[7]", "sprite(86).props.faders[8]", "sprite(86).props.faders[9]", "sprite(86).props.faders[10]", "sprite(86).props.faders[11]", "sprite(86).props.faders[12]", "sprite(86).props.faders[13]", "sprite(86).props.faders[14]", "sprite(86).props.faders[15]", "sprite(86).props.faders[16]", "sprite(86).props.faders[17]", "sprite(86).props.faders[18]", "sprite(86).props.faders[19]", "sprite(86).props.faders[20]", "sprite(86).props.faders[11]", "sprite(86).props.faders[12]", "sprite(86).props.faders[23]", "sprite(86).props.faders[24]", "timelist[5]", "scratchlist[5]"]]
  35.   origconnectlist = connectlist.duplicate()
  36.   ms = the milliSeconds
  37. end
  38.  
  39. on snapshot me
  40.   zz = image(composewidth, composeheight, 32)
  41.   zz.copyPixels(Screen, rect(0, 0, composewidth, composeheight), rect(0, 0, composewidth, composeheight))
  42.   return zz
  43. end
  44.  
  45. on exitFrame me
  46.   fps = 1000.0 / (the milliSeconds - ms)
  47.   ms = the milliSeconds
  48.   curscript = "composite"
  49.   if not gfeedback then
  50.     Screen.fill(screenrect, rgb(0, 0, 0))
  51.   end if
  52.   repeat with i = 1 to 5
  53.     if ((channels[i] <> 0) or (linklist[i] = 1)) and onlist[i] then
  54.       if (preloadlist[channels[i]] <> []) or (linklist[i] = 1) then
  55.         cnt = preloadlist[channels[i]].count
  56.         if timelist[i] = 0 then
  57.           if scratchlist[i] > 0 then
  58.             vv = min(256, max(1, scratchlist[i]))
  59.             vall = (vv / 256.0 * (outlist[i] - inlist[i])) + inlist[i]
  60.           else
  61.             vall = (sprite(i + 101).val / 256.0 * (outlist[i] - inlist[i])) + inlist[i]
  62.           end if
  63.         else
  64.           vall = integer(value(connectlist[i][26]))
  65.         end if
  66.         wframe = max(1, vall / 256.0 * cnt)
  67.         if masklist[i] > 0 then
  68.           mcnt = preloadlist[masklist[i]].count
  69.           if mcnt > 0 then
  70.             if timelist[i] = 0 then
  71.               mvall = (sprite(i + 101).val / 256.0 * (outlist[i] - inlist[i])) + inlist[i]
  72.             else
  73.               mvall = integer(value(connectlist[i][26]))
  74.             end if
  75.             mwframe = max(1, mvall / 256.0 * mcnt)
  76.             mwhich = preloadlist[masklist[i]][mwframe].createMask()
  77.           else
  78.             mwhich = myblack
  79.           end if
  80.         end if
  81.         if linklist[i] then
  82.           which = snapshot()
  83.         else
  84.           which = preloadlist[channels[i]][wframe]
  85.           if which.ilk = #image then
  86.             lastgoodframe[i] = integer(wframe)
  87.           else
  88.             which = preloadlist[i][lastgoodframe[i]]
  89.           end if
  90.         end if
  91.         props = sprite(i + 81).props
  92.         blendlist[i] = value(connectlist[i][1])
  93.         if blendlist[i] < 255 then
  94.           if fx2list[i] = #nop then
  95.             case inklist[i].ilk of
  96.               #integer:
  97.                 if getPos([0, 32], inklist[i]) = 0 then
  98.                   tempimg = Screen.duplicate()
  99.                   tempimg.copyPixels(dofx1(which, i, props), screenrect, which.rect, [#ink: inklist[i], #color: sprite(i + 16).mycol, #bgColor: sprite(i + 11).mycol])
  100.                   Screen.copyPixels(tempimg, screenrect, screenrect, [#blendLevel: blendlist[i]])
  101.                 else
  102.                   Screen.copyPixels(dofx1(which, i, props), screenrect, which.rect, [#ink: inklist[i], #blendLevel: blendlist[i], #color: sprite(i + 16).mycol, #bgColor: sprite(i + 11).mycol])
  103.                 end if
  104.               #list:
  105.                 inkk = inklist[i][1]
  106.                 tempimgg = dofx1(which, i, props)
  107.                 tempimg = Screen.duplicate()
  108.                 inkx.jbCopyPixels(tempimg, tempimgg, which.rect, which.rect, [#ink: inkk, #DestIsStage: 0])
  109.                 Screen.copyPixels(tempimg, screenrect, screenrect, [#blendLevel: blendlist[i]])
  110.               #symbol:
  111.                 case inklist[i] of
  112.                   #wipe:
  113.                     Screen = masktransition(Screen, dofx1(which, i, props), wipelist[i], blendlist[i], Screen.rect, Screen.rect)
  114.                   #mask:
  115.                     if getPos([0, 32], inklist[i]) = 0 then
  116.                       tempimg = Screen.duplicate()
  117.                       tempimg.copyPixels(dofx1(which, i, props), screenrect, which.rect, [#ink: inklist[i], #color: sprite(i + 16).mycol, #bgColor: sprite(i + 11).mycol])
  118.                       Screen.copyPixels(tempimg, screenrect, screenrect, [#maskImage: mwhich, #blendLevel: blendlist[i]])
  119.                     else
  120.                       Screen.copyPixels(dofx1(which, i, props), screenrect, which.rect, [#maskImage: mwhich, #ink: inklist[i], #blendLevel: blendlist[i], #color: sprite(i + 16).mycol, #bgColor: sprite(i + 11).mycol])
  121.                     end if
  122.                 end case
  123.             end case
  124.           else
  125.             case inklist[i].ilk of
  126.               #integer:
  127.                 if getPos([0, 32], inklist[i]) = 0 then
  128.                   tempimg = dofx2(dofx1(which, i, props), i, props)
  129.                   t2 = Screen.duplicate()
  130.                   t2.copyPixels(tempimg, screenrect, which.rect, [#ink: inklist[i], #color: sprite(i + 16).mycol, #bgColor: sprite(i + 11).mycol])
  131.                   Screen.copyPixels(t2, screenrect, screenrect, [#blendLevel: blendlist[i]])
  132.                 else
  133.                   Screen.copyPixels(dofx2(dofx1(which, i, props), i, props), screenrect, which.rect, [#ink: inklist[i], #blendLevel: blendlist[i], #color: sprite(i + 16).mycol, #bgColor: sprite(i + 11).mycol])
  134.                 end if
  135.               #list:
  136.                 inkk = inklist[i][1]
  137.                 tempimg = dofx2(dofx1(which, i, props), i, props)
  138.                 t2 = Screen.duplicate()
  139.                 inkx.jbCopyPixels(t2, tempimg, which.rect, which.rect, [#ink: inkk, #DestIsStage: 0])
  140.                 Screen.copyPixels(t2, screenrect, screenrect, [#blendLevel: blendlist[i]])
  141.               #symbol:
  142.                 case inklist[i] of
  143.                   #wipe:
  144.                     Screen = masktransition(Screen, dofx2(dofx1(which, i, props), i, props), wipelist[i], blendlist[i], Screen.rect, Screen.rect)
  145.                   #mask:
  146.                     if getPos([0, 32], inklist[i]) = 0 then
  147.                       tempimg = dofx2(dofx1(which, i, props), i, props)
  148.                       t2 = Screen.duplicate()
  149.                       t2.copyPixels(tempimg, screenrect, which.rect, [#ink: inklist[i], #color: sprite(i + 16).mycol, #bgColor: sprite(i + 11).mycol])
  150.                       Screen.copyPixels(t2, screenrect, screenrect, [#maskImage: mwhich, #blendLevel: blendlist[i]])
  151.                     else
  152.                       Screen.copyPixels(dofx2(dofx1(which, i, props), i, props), screenrect, which.rect, [#maskImage: mwhich, #ink: inklist[i], #blendLevel: blendlist[i], #color: sprite(i + 16).mycol, #bgColor: sprite(i + 11).mycol])
  153.                     end if
  154.                 end case
  155.             end case
  156.           end if
  157.           next repeat
  158.         end if
  159.         if fx2list[i] = #nop then
  160.           case inklist[i].ilk of
  161.             #integer:
  162.               Screen.copyPixels(dofx1(which, i, props), screenrect, which.rect, [#ink: inklist[i], #color: sprite(i + 16).mycol, #bgColor: sprite(i + 11).mycol])
  163.             #list:
  164.               inkk = inklist[i][1]
  165.               tempimg = dofx1(which, i, props)
  166.               inkx.jbCopyPixels(Screen, tempimg, which.rect, which.rect, [#ink: inkk, #DestIsStage: 0])
  167.             #symbol:
  168.               case inklist[i] of
  169.                 #wipe:
  170.                   Screen = masktransition(Screen, dofx1(which, i, props), wipelist[i], blendlist[i], Screen.rect, Screen.rect)
  171.                 #mask:
  172.                   Screen.copyPixels(dofx1(which, i, props), screenrect, which.rect, [#maskImage: mwhich, #ink: inklist[i], #color: sprite(i + 16).mycol, #bgColor: sprite(i + 11).mycol])
  173.               end case
  174.           end case
  175.           next repeat
  176.         end if
  177.         case inklist[i].ilk of
  178.           #integer:
  179.             Screen.copyPixels(dofx2(dofx1(which, i, props), i, props), screenrect, which.rect, [#ink: inklist[i], #color: sprite(i + 16).mycol, #bgColor: sprite(i + 11).mycol])
  180.           #list:
  181.             inkk = inklist[i][1]
  182.             tempimg = dofx2(dofx1(which, i, props), i, props)
  183.             inkx.jbCopyPixels(Screen, tempimg, which.rect, which.rect, [#ink: inkk, #DestIsStage: 0])
  184.           #symbol:
  185.             case inklist[i] of
  186.               #wipe:
  187.                 Screen = masktransition(Screen, dofx2(dofx1(which, i, props), i, props), wipelist[i], blendlist[i], Screen.rect, Screen.rect)
  188.               #mask:
  189.                 Screen.copyPixels(dofx2(dofx1(which, i, props), i, props), screenrect, which.rect, [#maskImage: mwhich, #ink: inklist[i], #color: sprite(i + 16).mycol, #bgColor: sprite(i + 11).mycol])
  190.             end case
  191.         end case
  192.       end if
  193.     end if
  194.   end repeat
  195.   if (the ticks mod 18000) > 14400 then
  196.     Screen.copyPixels(piet, screenrect, screenrect, [#ink: #addPin])
  197.   end if
  198.   (the stage).image.copyPixels(Screen, rect(0, 0, 320, 240), screenrect)
  199.   if softdual then
  200.     fsim.copyPixels(Screen, rect(0, 0, 640, 480), screenrect)
  201.   end if
  202. end
  203.  
  204. on dofx1 mem, layer, props
  205.   effect = fx1list[layer]
  206.   repeat with i = 1 to 12
  207.     props.faders[i] = integer(value(connectlist[layer][i + 1]))
  208.     if props.write[i] then
  209.       sprite(218 + layer).setval(props.faders[i], #void, i)
  210.     end if
  211.     if props.read[i] then
  212.       props.faders[i] = sprite(218 + layer).val[i]
  213.     end if
  214.     if effect = #freeframe then
  215.       if freeframe1list[layer] > 0 then
  216.         v = max(0, min(1, props.faders[i] / 256.0))
  217.         FreeFrameTest.setParam_Plug_Inst(freeframe1list[layer], 1, i, v)
  218.       end if
  219.     end if
  220.   end repeat
  221.   case effect of
  222.     #Blur:
  223.       times = props.faders[1] / 32
  224.       repeat with i = 1 to times
  225.         mem = Blur(mem)
  226.       end repeat
  227.     #feedback:
  228.       mem = feedback(mem, props.faders[1], props.faders[2], props.faders[2])
  229.     #matrix:
  230.       mem = matrix(mem, props.faders[1] / 16, props.faders[2] / 16)
  231.     #matrix_flip:
  232.       mem = matrix_flip(mem, props.faders[1] / 16, props.faders[2] / 16)
  233.     #rotate:
  234.       mem = imageRotate(mem, props.faders[1], props.bgColor)
  235.     #scaleimg:
  236.       mem = scaleimg(mem, props.faders[1])
  237.     #round_edges:
  238.       mem = roundedges(mem, props.bgColor)
  239.     #ovalize:
  240.       mem = ovalize(mem, props.bgColor)
  241.     #colorize:
  242.       mem = colorize(mem, props.color)
  243.     #color_min_max:
  244.       mem = colorfilter(mem, props.color, props.bgColor)
  245.     #bender:
  246.       mem = bender(mem, props.faders[1], props.faders[2])
  247.     #bol:
  248.       mem = bol(mem, props.scale, props.scale)
  249.     #lineshift:
  250.       mem = lineshift(mem, props.faders[1], props.faders[2])
  251.     #dots:
  252.       mem = dotfilter(mem, props.faders[1] / 8, props.faders[1] / 8, props.color, props.bgColor)
  253.     #dotsfast:
  254.       mem = dotfast(mem, props.faders[1], props.faders[2])
  255.     #dotscolor:
  256.       mem = dotfiltercolor(mem, props.faders[1] / 8, props.faders[1] / 8, props.color, props.bgColor)
  257.     #sketch:
  258.       mem = sketch(mem, props.faders[1], props.color, props.bgColor)
  259.     #desat:
  260.       mem = desaturate(mem, props.faders[1])
  261.     #contrast:
  262.       mem = contrast(mem, props.faders[1])
  263.     #lightness:
  264.       mem = lightness(mem, props.faders[1])
  265.     #lightray:
  266.       mem = lightray(mem, props.faders[1], props.faders[2])
  267.     #lightray2:
  268.       mem = lightray2(mem, props.faders[1], props.faders[2])
  269.     #pinch:
  270.       mem = pinch(mem, props.faders[1], props.faders[2])
  271.     #pinch_square:
  272.       mem = pinch_square(mem, props.faders[1], props.faders[2])
  273.     #saturation:
  274.       mem = saturation(mem, props.faders[1])
  275.     #twist:
  276.       mem = twist(mem, props.faders[1])
  277.     #synaesthesia:
  278.       mem = synaesthesia(mem, props.faders[1], props.faders[2])
  279.     #symh:
  280.       mem = symh(mem, props.faders[1])
  281.     #symv:
  282.       mem = symv(mem, props.faders[1])
  283.     #symhv:
  284.       mem = symhv(mem, props.faders[1], props.faders[2])
  285.     #hdistort:
  286.       mem = hdistort(mem, props.faders[1], props.faders[2], layer, 1)
  287.     #vdistort:
  288.       mem = vdistort(mem, props.faders[1], props.faders[2], layer, 1)
  289.     #hflip:
  290.       mem = hflip(mem)
  291.     #vflip:
  292.       mem = vflip(mem)
  293.     #filmstrip:
  294.       mem = filmstrip(mem, props.faders[1] / 16, props.faders[2] / 16, layer, 1)
  295.     #filmstrip_flip:
  296.       mem = filmstrip_flip(mem, props.faders[1] / 16, props.faders[2] / 16, layer, 1)
  297.     #twirl:
  298.       mem = twirl(mem, props.faders[1], props.faders[2])
  299.     #rotblur:
  300.       mem = rotblur(mem, props.faders[1], props.faders[2])
  301.     #squeezeh:
  302.       mem = squeezeh(mem, props.faders[1], props.faders[2], layer, 2)
  303.     #squeezev:
  304.       mem = squeezev(mem, props.faders[1], props.faders[2], layer, 2)
  305.     #pixelate:
  306.       mem = pixelate(mem, props.faders[1] / 4, props.faders[2] / 4)
  307.     #offsetimg:
  308.       mem = offsetimg(mem, props.faders[1], props.faders[2])
  309.     #imginvert:
  310.       mem = imginvert(mem, props.faders[1])
  311.     #acid:
  312.       mem = acid(mem, props.faders[1])
  313.     #killbright:
  314.       mem = killbright(mem, props.faders[1])
  315.     #killdark:
  316.       mem = killdark(mem, props.faders[1])
  317.     #pong:
  318.       mem = pong(mem, props.faders[1])
  319.     #echo:
  320.       mem = echo(mem, props.faders[1], props.faders[2], layer, 1)
  321.     #linepattern:
  322.       mem = linepattern(mem, props.faders[1], props.faders[2], props.color, props.bgColor)
  323.     #smearh:
  324.       mem = smearh(mem, props.faders[1], props.faders[2])
  325.     #smearv:
  326.       mem = smearv(mem, props.faders[1], props.faders[2])
  327.     #ascii:
  328.       mem = ascii(mem, props.faders[1], props.faders[2])
  329.     #makealpha:
  330.       mem = makealpha(mem)
  331.     #lumakey:
  332.       mem = lumakey(mem, props.faders[1])
  333.     #RGBshift:
  334.       mem = RGBshift(mem, props.faders[1])
  335.     #freeframe:
  336.       if freeframe1list[layer] > 1 then
  337.         mem2 = mem.duplicate()
  338.         FreeFrameTest.processFrame_Plug_Inst(freeframe1list[layer], 1, mem2)
  339.         mem = mem2
  340.       end if
  341.   end case
  342.   return mem
  343. end
  344.  
  345. on dofx2 mem, layer, props
  346.   effect = fx2list[layer]
  347.   repeat with i = 13 to 24
  348.     props.faders[i] = integer(value(connectlist[layer][i + 1]))
  349.     if props.write[i] then
  350.       sendSprite(218 + layer, #setval, props.faders[i], #void, i)
  351.     end if
  352.     if props.read[i] then
  353.       props.faders[i] = sprite(218 + layer).val[i]
  354.     end if
  355.     if effect = #freeframe then
  356.       if freeframe2list[layer] > 0 then
  357.         v = max(0, min(1, props.faders[i] / 256.0))
  358.         FreeFrameTest.setParam_Plug_Inst(freeframe2list[layer], 1, i - 12, v)
  359.       end if
  360.     end if
  361.   end repeat
  362.   case effect of
  363.     #Blur:
  364.       times = props.faders[13] / 32
  365.       repeat with i = 1 to times
  366.         mem = Blur(mem)
  367.       end repeat
  368.     #feedback:
  369.       mem = feedback(mem, props.faders[13], props.faders[14], props.faders[14])
  370.     #matrix:
  371.       mem = matrix(mem, props.faders[13] / 16, props.faders[14] / 16)
  372.     #matrix_flip:
  373.       mem = matrix_flip(mem, props.faders[13] / 16, props.faders[14] / 16)
  374.     #rotate:
  375.       mem = imageRotate(mem, props.faders[13], props.bgColor)
  376.     #scaleimg:
  377.       mem = scaleimg(mem, props.faders[13])
  378.     #round_edges:
  379.       mem = roundedges(mem, props.bgColor)
  380.     #ovalize:
  381.       mem = ovalize(mem, props.bgColor)
  382.     #colorize:
  383.       mem = colorize(mem, props.color)
  384.     #color_min_max:
  385.       mem = colorfilter(mem, props.color, props.bgColor)
  386.     #bender:
  387.       mem = bender(mem, props.faders[13], props.faders[14])
  388.     #bol:
  389.       mem = bol(mem, props.scale, props.scale)
  390.     #lineshift:
  391.       mem = lineshift(mem, props.faders[13], props.faders[14])
  392.     #dots:
  393.       mem = dotfilter(mem, props.faders[13] / 8, props.faders[13] / 8, props.color, props.bgColor)
  394.     #dotsfast:
  395.       mem = dotfast(mem, props.faders[13], props.faders[14])
  396.     #dotscolor:
  397.       mem = dotfiltercolor(mem, props.faders[13] / 8, props.faders[13] / 8, props.color, props.bgColor)
  398.     #sketch:
  399.       mem = sketch(mem, props.faders[13], props.color, props.bgColor)
  400.     #desat:
  401.       mem = desaturate(mem, props.faders[13])
  402.     #contrast:
  403.       mem = contrast(mem, props.faders[13])
  404.     #lightness:
  405.       mem = lightness(mem, props.faders[13])
  406.     #lightray:
  407.       mem = lightray(mem, props.faders[13], props.faders[14])
  408.     #lightray2:
  409.       mem = lightray2(mem, props.faders[13], props.faders[14])
  410.     #saturation:
  411.       mem = saturation(mem, props.faders[13])
  412.     #pinch:
  413.       mem = pinch(mem, props.faders[13], props.faders[14])
  414.     #pinch_square:
  415.       mem = pinch_square(mem, props.faders[13], props.faders[14])
  416.     #twist:
  417.       mem = twist(mem, props.faders[13])
  418.     #synaesthesia:
  419.       mem = synaesthesia(mem, props.faders[13], props.faders[14])
  420.     #symh:
  421.       mem = symh(mem, props.faders[13])
  422.     #symv:
  423.       mem = symv(mem, props.faders[13])
  424.     #symhv:
  425.       mem = symhv(mem, props.faders[13], props.faders[14])
  426.     #hdistort:
  427.       mem = hdistort(mem, props.faders[13], props.faders[14], layer, 2)
  428.     #vdistort:
  429.       mem = vdistort(mem, props.faders[13], props.faders[14], layer, 2)
  430.     #hflip:
  431.       mem = hflip(mem)
  432.     #vflip:
  433.       mem = vflip(mem)
  434.     #filmstrip:
  435.       mem = filmstrip(mem, props.faders[13] / 16, props.faders[14] / 16, layer, 2)
  436.     #filmstrip_flip:
  437.       mem = filmstrip_flip(mem, props.faders[13] / 16, props.faders[14] / 16, layer, 2)
  438.     #twirl:
  439.       mem = twirl(mem, props.faders[13], props.faders[14])
  440.     #rotblur:
  441.       mem = rotblur(mem, props.faders[13], props.faders[14])
  442.     #squeezeh:
  443.       mem = squeezeh(mem, props.faders[13], props.faders[14], layer, 2)
  444.     #squeezev:
  445.       mem = squeezev(mem, props.faders[13], props.faders[14], layer, 2)
  446.     #pixelate:
  447.       mem = pixelate(mem, props.faders[13] / 4, props.faders[14] / 4)
  448.     #offsetimg:
  449.       mem = offsetimg(mem, props.faders[13], props.faders[14])
  450.     #imginvert:
  451.       mem = imginvert(mem, props.faders[13])
  452.     #acid:
  453.       mem = acid(mem, props.faders[13])
  454.     #killbright:
  455.       mem = killbright(mem, props.faders[13])
  456.     #killdark:
  457.       mem = killdark(mem, props.faders[13])
  458.     #echo:
  459.       mem = echo(mem, props.faders[13], props.faders[14], layer, 2)
  460.     #linepattern:
  461.       mem = linepattern(mem, props.faders[13], props.faders[14], props.color, props.bgColor)
  462.     #pong:
  463.       mem = pong(mem, props.faders[13])
  464.     #smearh:
  465.       mem = smearh(mem, props.faders[13], props.faders[14])
  466.     #smearv:
  467.       mem = smearv(mem, props.faders[13], props.faders[14])
  468.     #ascii:
  469.       mem = ascii(mem, props.faders[13], props.faders[14])
  470.     #makealpha:
  471.       mem = makealpha(mem)
  472.     #lumakey:
  473.       mem = lumakey(mem, props.faders[13])
  474.     #RGBshift:
  475.       mem = RGBshift(mem, props.faders[13])
  476.     #freeframe:
  477.       if freeframe2list[layer] > 1 then
  478.         mem2 = mem.duplicate()
  479.         FreeFrameTest.processFrame_Plug_Inst(freeframe2list[layer], 1, mem2)
  480.         mem = mem2
  481.       end if
  482.   end case
  483.   return mem
  484. end
  485.